package com.harveyguo.nihonngo.model.dto;

import com.harveyguo.nihonngo.enums.Gender;
import com.harveyguo.nihonngo.model.entity.Word;
import jakarta.persistence.Column;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

@Data
public class CourseCreateDto {
    @NotBlank(message = "课程名不能为空")
    @Size(min = 1, max = 20, message = "用户名长度必须在1-20之间")
    private String name;

    private List<WordDto>  words;


}
